package com.xqb.modules.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xqb.common.annotation.Excel;
import com.xqb.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 赛季积分榜对象 std_points_board_season
 * 
 * @author xqb
 * @date 2024-10-14
 */
public class StdPointsBoardSeason extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长id，season标识 */
    private Long id;

    /** 赛季名称，例如：第1赛季 */
    @Excel(name = "赛季名称，例如：第1赛季")
    private String name;

    /** 赛季开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "赛季开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 赛季结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "赛季结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
